const toast = require('./utils/toast/index');
const http = require("./utils/http");
const http2 = require("./utils/http2");
const wxToast = require("./utils/wx-toast");
const toPromise = require("./utils/to-promise");

App({
    onLaunch: function () {
        wx.getSystemInfo({
            success: (res) => {
                this.window = { width: res.windowWidth, height: res.screenHeight };
            }
        });
        const config = wx.getExtConfigSync("storeId")
        if (config.storeId) {
            this.storeId = config.storeId
        }
    },
    global_data: {},
    toast,
    http,
    wxToast,
    toPromise,
    storeId: 1,//成都西区   
    storeId: 12,//上海配送中心 
    storeId: 19,//配送中心测试 
    storeId: 11,//数码城                        
    
})